tools/xen-mceinj: fix the type of cpu number
authorHaozhong Zhang <haozhong.zhang@intel.com>
Fri, 24 Feb 2017 10:52:56 +0000 (18:52 +0800)
committerWei Liu <wei.liu2@citrix.com>
Mon, 27 Feb 2017 11:02:17 +0000 (11:02 +0000)
commit06d9991b0aff681450e4c15345887918e0e34be5
treefb2b880c8debb95ea26c2ccbd6bcf6e68bd74cd7
parentd6e9f8d4f35d938417f9dc2ea50f6e8004e26725
tools/xen-mceinj: fix the type of cpu number

Use "unsigned int" rather than "int" to align to the type "uint32_t"
of xen_mc_physcpuinfo.ncpus.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/tests/mce-test/tools/xen-mceinj.c